{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf270
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
\margl1440\margr1440\vieww10540\viewh14000\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural\pardirnatural

\f0\b\fs24 \cf0 AUTOSUGGEST IMPLEMENTATION\
\
NOTE : IF YOU COPY THIS VERSION, REMOVE THE LINE ' document.myform.submit(); ' FROM LINE 428 IN BSN.AUTOSUGGEST... .JS\
\
- add these items to interface document HEAD:
\b0 \
\
<script type="text/javascript" src="autosuggest/js/bsn.AutoSuggest_2.1.3.js" charset="utf-8"></script>\
<link rel="stylesheet" href="autosuggest/css/autosuggest_inquisitor.css" type="text/css" media="screen" charset="utf-8" />\
\

\b - add as last item in BODY tag area:
\b0 \
\
<script type="text/javascript">\
	var options = \{\
		script:"autosuggest/test.php?json=true&limit=6&",\
		varname:"input",\
		json:true,\
		shownoresults:false,\
		maxresults:6,\
		callback: function (obj) \{ document.getElementById('testid').value = obj.id; \}\
	\};\
	var as_json = new bsn.AutoSuggest('testinput', options);\
	\
	var options_xml = \{\
		script: function (input) \{ return "autosuggest/test.php?input="+input+"&testid="+document.getElementById('testid').value; \},\
		varname:"input"\
	\};\
	var as_xml = new bsn.AutoSuggest('testinput_xml', options_xml);\
</script>\
\

\b - COPY AUTOSUGGEST FOLDER TO ROOT DIRECTORY\
\
- EDIT autosuggest/test.php  to include proper db access to fill arrays
\b0 \

\b \
- the form for the autosuggest field must be like this, in these divs:
\b0 \
\
<div id="wrapper">\
<div id="content">\
<div>\
<form method="get" action="" class="asholder">\
	<label for="testinput_xml">Person</label>\
	<input type="text" id="testinput_xml" value="" style="width:300px" /> \
    <input type="text" id="testid" value="" style="width:21px" /> \
	<br /><br /><input type="submit" value="submit" />\
</form>\
</div>\
</div>\
</div>}